 export const username_rules  = (rules,value,callback) => {
    if (value.length<4 || value.length >10){
        return callback(new Error("长度应保持为4-10"))
    }
    return callback()
}
export const password_rules = (rules,value,callback) => {
    if (value.length<6 || value.length > 12){
        return callback(new Error("长度应保持为6-12"))
    }
    return callback()
}